package com.sky.mapper;

import com.sky.dto.ArticleTagsDTO;
import com.sky.vo.ArticleInfoVO;
import com.sky.vo.ArticleTagVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author 贾晓晨
 * @version 1.0
 */
@Mapper
public interface ArticleTagsMapper {
    @Select("select category_name from categories")
    List<ArticleTagsDTO> findAllTag();

    void insertNewTag(@Param("categoryNames") List<String> newTags);


    List<ArticleTagVO> findArticlesByTags(@Param("tagList")  List<String> tagList);
}
